package com.yanghui.dtracing.common.util;

import java.io.Serializable;

public class ResultData<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    private String encrypt;
    private T data;

    public ResultData() {
    }

    public ResultData(String encrypt, T data) {
        this.encrypt = encrypt;
        this.data = data;
    }

    public ResultData(T data) {
        this.encrypt = EncryptFlag.NONE.name();
        this.data = data;
    }

    public String getEncrypt() {
        return this.encrypt;
    }

    public void setEncrypt(String encrypt) {
        this.encrypt = encrypt;
    }

    public T getData() {
        return this.data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
